﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.EntityFrameworkCore;
using PathologyDAL.Service;

namespace PathologyDAL.Modle
{
    /// <summary>
    /// 肿瘤
    /// </summary>
    [Index(nameof(Name), IsUnique = true)]
    public class Tumour
    {
        [Required]
       
        public string Name { get; set; }

        [Key]
        public int ID { get; set; }


        [Required]
        public DateTime LastUpdated { get; set; }

            
    public override string ToString()
        {
            return Name;
        }
    }
}
